
// 自动生成模板Integrals
package Integral
import (
	"time"
)

// 积分表 结构体  Integrals
type Integrals struct {
    Id  *int `json:"id" form:"id" gorm:"primarykey;column:id;comment:;size:20;"`  //id字段 
    CreatedAt  *time.Time `json:"createdAt" form:"createdAt" gorm:"column:created_at;comment:;"`  //createdAt字段 
    UpdatedAt  *time.Time `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;comment:;"`  //updatedAt字段 
    DeletedAt  *time.Time `json:"deletedAt" form:"deletedAt" gorm:"column:deleted_at;comment:;"`  //deletedAt字段 
    UserId  *int `json:"userId" form:"userId" gorm:"column:user_id;comment:;"`  //userId字段 
    PointsBalance  *int `json:"pointsBalance" form:"pointsBalance" gorm:"column:points_balance;comment:积分余额;"`  //积分余额 
}


// TableName 积分表 Integrals自定义表名 integrals
func (Integrals) TableName() string {
    return "integrals"
}





